﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Sanbox
{
    /// <summary>
    /// Interaction logic for ButtonTestWindow.xaml
    /// </summary>
    public partial class ButtonTestWindow : Window
    {
        public ButtonTestWindow()
        {
            InitializeComponent();
            System.IO.DriveInfo[] drives = System.IO.DriveInfo.GetDrives();

            foreach (System.IO.DriveInfo drive in drives.Where(d => d.DriveType == DriveType.CDRom))
            {
                MessageBox.Show("Drive: " + drive.Name + " Label: " + drive.ToString());
            }
        }
    }
}
